//package com.clannad.radar;
//
//public class MongoDBJDBC {
//
//
//    public static void main(String[] args){
//        try{
//            //连接mongodb服务
////            MongoClient mongoClient = new MongoClient("localhost", 27017);
////            //连接到数据库
////            MongoDatabase mongoDatabase = mongoClient.getDatabase("clannad");
////            MongoCollection<Document> collection = mongoDatabase.getCollection("sk");
////            FindIterable<Document> documents = collection.find();
////            MongoCursor<Document> iterator = documents.iterator();
////            while (iterator.hasNext()){
////                Document next = iterator.next();
////                String title = (String) next.get("title");
////                System.out.println(title);
////            }
////            System.out.println("suc");
//
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//    }
//
//}
